﻿@model TechnicBlog.Models.NormEntity
@{
    Layout = null;
}
<script>
    function RequestError() {
        $.messager.alert('错误', '<br>请求失败！', 'error');
    }
    function checkSubmit() {
        if ($("#form0").validate()) {
            $('#loading').window('open');
            $("#form0").ajaxSubmit({ action: this.action, method: this.method });
        }
    }
</script>
<form id="form0" action="/Norm/Add" method="post" data-ajax-failure="RequestError"
data-ajax="true">
@Html.Hidden("FireWorkId", ((TechnicBlog.Models.FireWorkEntity)@ViewBag.FireWork).Id.ToString())
<table style="color: #666666; width: 100%;">
    <tr style="height: 34px;">
        <td style="width: 25%;" align="right">
            品牌名称：
        </td>
        <td style="width: 75%;" align="left">
            <div class="editor-field">
                @Html.Raw(((TechnicBlog.Models.BrandEntity)@ViewBag.Brand).BrandName)
            </div>
        </td>
    </tr>
    <tr style="height: 34px;">
        <td style="width: 25%;" align="right">
            烟花名称：
        </td>
        <td style="width: 75%;" align="left">
            <div class="editor-field">
                 @Html.Raw(((TechnicBlog.Models.FireWorkEntity)@ViewBag.FireWork).FireWorkName)
            </div>
        </td>
    </tr>
    <tr style="height: 34px;">
        <td style="width: 25%;" align="right">
            规格名称：
        </td>
        <td style="width: 75%;" align="left">
            <div class="editor-field">
                @Html.TextBoxFor(model => model.NormName, new { require="true"})
            </div>
        </td>
    </tr>
    <tr style="height: 34px;">
        <td style="width: 25%;" align="right">
            进价：
        </td>
        <td style="width: 75%;" align="left">
            <div class="editor-field">
                @Html.TextBoxFor(model => model.BuyPrice, new { require = "true", isnum = "number" })
            </div>
        </td>
    </tr>
    <tr style="height: 34px;">
        <td style="width: 25%;" align="right">
            售价：
        </td>
        <td style="width: 75%;" align="left">
            <div class="editor-field">
                @Html.TextBoxFor(model => model.SellPrice, new { require = "true", isnum = "number" })
            </div>
        </td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td align="left">
            <a class="easyui-linkbutton" iconcls="icon-save" onclick="return checkSubmit();">提交</a>
            <a class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#divNormEdit').window('close');">
                关闭</a>
        </td>
    </tr>
</table>
</form>
